package cn.kgc.dao;


import cn.kgc.pojo.UserRole;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: admin
 * @date: 2022/2/15
 * @description:
 */
@Mapper
public interface userRoleDao {

    //查看用户详细信息
    UserRole selRoleById(Integer id);

    //修改用户信息
    int updRole(UserRole userRole);

    //添加用户
    int addRole(UserRole userrole);

    //删除用户
    int delRole(Integer id);

    //模糊查询
    Page<UserRole> getList(@Param("name") String name, @Param("role") String role, @Param("department") String department);

}
